<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/jsp/commons/includes.jsp"%>

<!doctype html>
<html>
    <head>
        <jsp:include page="../header.jsp"/>
    </head>
    <body>
        <!-- 头部 -->
        <div class="header">
        </div>
        <!-- /头部 -->

        <!-- 内容区 -->
        <div id="main-content">
            <div id="top-alert" class="fixed alert alert-error" style="display: none;">
                <button class="close fixed" style="margin-top: 4px;">&times;</button>
                <div class="alert-content">这是内容</div>
            </div>
            <div id="main" class="main">
                <!-- nav -->
                <!-- nav -->
                <!-- 标题栏 -->
                <div class="main-title">
                    <h2>星星游戏列表</h2>
                </div>
                <div class="cf">
                    <div class="fl">
                        <a class="btn" href="${ctx}/admin/star/add/${queryvo.originalId}.shtml">新 增</a>
                        <a class="btn" href="${ctx}/admin/original/index.shtml">返 回</a>
                    </div>

                    <form id="searchForm" action="${ctx}/admin/star/index/${queryvo.originalId}.shtml" method="post">
                        <%@ include file="/WEB-INF/jsp/commons/pageinfohidden.jsp" %>
                        <!-- 高级搜索 -->
                        <div class="search-form fr cf">
                            <div class="sleft">
                                <input type="text" name="dspTxt" class="search-input" value="${queryvo.dspTxt}" placeholder="请输入文字">
                                <a class="sch-btn" href="javascript:;" id="search" url="${ctx}/admin/atar/index/${queryvo.originalId}.shtml"><i class="btn-search"></i></a>
                            </div>
                        </div>
                    </form>

                </div>
                <!-- 数据列表 -->
                <div class="data-table table-striped">
                    <table class="">
                        <thead>
                        <tr>
                            <th class="">UID</th>
                            <th class="">文字</th>
                            <th class="">创建时间</th>
                            <th class="">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                            <c:forEach var="cur" items="${info}" varStatus="vs">
                                <tr>
                                    <td>${cur.id}</td>
                                    <td>${cur.dspTxt}</td>
                                    <td><fmt:formatDate value="${cur.createTime}" pattern="yyyy-MM-dd"/></td>
                                    <td>
                                        <a href="${ctx}/admin/star/edit/${queryvo.originalId}/${cur.id}.shtml">详细</a>
                                        <a href="" class="confirm ajax-get">删除</a>
                                    </td>
                                </tr>
                            </c:forEach>
                        </tbody>
                    </table>
                </div>

                <%@ include file="/WEB-INF/jsp/commons/pageinfo.jsp" %>
            </div>
            <div class="cont-ft">
                <div class="copyright">
                    <div class="fl">感谢使用管理平台</div>
                    <div class="fr">V1.0</div>
                </div>
            </div>
        </div>

        <script type="text/javascript" src="${ctx}/admin/js/common.js"></script>
        <script type="text/javascript">
            +function(){
                var $window = $(window), $subnav = $("#subnav"), url;
                $window.resize(function(){
                    $("#main").css("min-height", $window.height() - 130);
                }).resize();
            }();
        </script>

        <script src="${ctx}/static/thinkbox/jquery.thinkbox.js"></script>

        <script type="text/javascript">
            $(function() {
                //搜索功能
                $("#search").click(function () {
                    $("#searchForm").submit();
                });
                //回车搜索
                $(".search-input").keyup(function (e) {
                    if (e.keyCode === 13) {
                        $("#searchForm").submit();
                        return false;
                    }
                });
            });
        </script>


    </body>
</html>